package com.lukebang.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lukebang.pojo.Good;

/**
 * 
 * GoodDAO 上午11:09:58
 * 
 * Copyright zhaocj Inc. All rights reserved. Love ME Like Justin Bieber.
 */
public interface GoodDAO {

	List<Good> selectIndentGoodByIndent(@Param("indentID") Integer indentID, @Param("queryType") Integer queryType);

	List<Good> selectAllIndentGoodByIndent(Integer indentID);

	List<String> selectForeignKeyStr(Map<String, Integer> queryGoodMap);

	Integer insertGoods(Good goods);

	// 获取该单布旗下的所有goods_special的accId对应的商品
	List<Map<String, Object>> selectGoodByAccId(@Param("goodsId") Integer goodsId, @Param("type") Integer type);

	// 更新goods可以多用
	int updateGoodsInstallPrice(Map<String, Object> param);

	String selectInstallRoomByID(Integer locationID);

	List<Good> selectInstallIndentGoodByIndent(String indentID);

	Map<String, Object> selectPartsOfGoodSpecialByGoodID(Integer goodID);
	
	//根据订单ID查询出改goodsID
	Good selectGoodsIdByIndentID(Integer indentID);
}
